﻿namespace Budjelar.Repository.EF
{
    public class UnitOfWork : IUnitOfWork
    {
        private readonly BudjelarDbContext m_Context;

        public UnitOfWork() : this(new BudjelarDbContext()){}

        public UnitOfWork(BudjelarDbContext context)
        {
            m_Context = context;
        }

        public void Commit()
        {
            m_Context.SaveChanges();
        }
    }
}